<html>
    <head>
        <title>Coverage for Doctrine_Inflector</title>
        <style type="text/css">
            .covered{ background: green;}
            .normal{ background: white;}
            .red{ background: red;}
            .orange{ background: #f90;}
       </style>
</head>
<body><h1>Coverage for Doctrine_Inflector</h1><p><a href="index.php">Back to coverage report</a></p><table>
<tr><td>1</td>
<td class="normal">&lt;?php
</td></tr>
<tr><td>2</td>
<td class="normal">/*
</td></tr>
<tr><td>3</td>
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Inflector.php&nbsp;3189&nbsp;2007-11-18&nbsp;20:37:44Z&nbsp;meus&nbsp;$
</td></tr>
<tr><td>4</td>
<td class="normal">&nbsp;*
</td></tr>
<tr><td>5</td>
<td class="normal">&nbsp;*&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;COPYRIGHT&nbsp;HOLDERS&nbsp;AND&nbsp;CONTRIBUTORS
</td></tr>
<tr><td>6</td>
<td class="normal">&nbsp;*&nbsp;&quot;AS&nbsp;IS&quot;&nbsp;AND&nbsp;ANY&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT
</td></tr>
<tr><td>7</td>
<td class="normal">&nbsp;*&nbsp;LIMITED&nbsp;TO,&nbsp;THE&nbsp;IMPLIED&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR
</td></tr>
<tr><td>8</td>
<td class="normal">&nbsp;*&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE&nbsp;ARE&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;COPYRIGHT
</td></tr>
<tr><td>9</td>
<td class="normal">&nbsp;*&nbsp;OWNER&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE&nbsp;LIABLE&nbsp;FOR&nbsp;ANY&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,
</td></tr>
<tr><td>10</td>
<td class="normal">&nbsp;*&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR&nbsp;CONSEQUENTIAL&nbsp;DAMAGES&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT
</td></tr>
<tr><td>11</td>
<td class="normal">&nbsp;*&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR&nbsp;SERVICES;&nbsp;LOSS&nbsp;OF&nbsp;USE,
</td></tr>
<tr><td>12</td>
<td class="normal">&nbsp;*&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS&nbsp;INTERRUPTION)&nbsp;HOWEVER&nbsp;CAUSED&nbsp;AND&nbsp;ON&nbsp;ANY
</td></tr>
<tr><td>13</td>
<td class="normal">&nbsp;*&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,&nbsp;OR&nbsp;TORT
</td></tr>
<tr><td>14</td>
<td class="normal">&nbsp;*&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE
</td></tr>
<tr><td>15</td>
<td class="normal">&nbsp;*&nbsp;OF&nbsp;THIS&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.
</td></tr>
<tr><td>16</td>
<td class="normal">&nbsp;*
</td></tr>
<tr><td>17</td>
<td class="normal">&nbsp;*&nbsp;This&nbsp;software&nbsp;consists&nbsp;of&nbsp;voluntary&nbsp;contributions&nbsp;made&nbsp;by&nbsp;many&nbsp;individuals
</td></tr>
<tr><td>18</td>
<td class="normal">&nbsp;*&nbsp;and&nbsp;is&nbsp;licensed&nbsp;under&nbsp;the&nbsp;LGPL.&nbsp;For&nbsp;more&nbsp;information,&nbsp;see
</td></tr>
<tr><td>19</td>
<td class="normal">&nbsp;*&nbsp;&lt;http://www.phpdoctrine.org&gt;.
</td></tr>
<tr><td>20</td>
<td class="normal">&nbsp;*/
</td></tr>
<tr><td>21</td>
<td class="normal">
</td></tr>
<tr><td>22</td>
<td class="normal">/**
</td></tr>
<tr><td>23</td>
<td class="normal">&nbsp;*&nbsp;Doctrine_Inflector&nbsp;has&nbsp;static&nbsp;methods&nbsp;for&nbsp;inflecting&nbsp;text
</td></tr>
<tr><td>24</td>
<td class="normal">&nbsp;*&nbsp;
</td></tr>
<tr><td>25</td>
<td class="normal">&nbsp;*&nbsp;The&nbsp;methods&nbsp;in&nbsp;these&nbsp;classes&nbsp;are&nbsp;from&nbsp;several&nbsp;different&nbsp;sources&nbsp;collected
</td></tr>
<tr><td>26</td>
<td class="normal">&nbsp;*&nbsp;across&nbsp;the&nbsp;internet&nbsp;through&nbsp;php&nbsp;development&nbsp;for&nbsp;several&nbsp;years.
</td></tr>
<tr><td>27</td>
<td class="normal">&nbsp;*&nbsp;They&nbsp;have&nbsp;been&nbsp;updated&nbsp;and&nbsp;modified&nbsp;a&nbsp;little&nbsp;bit&nbsp;for&nbsp;Doctrine&nbsp;but&nbsp;are&nbsp;mainly&nbsp;untouched.
</td></tr>
<tr><td>28</td>
<td class="normal">&nbsp;*
</td></tr>
<tr><td>29</td>
<td class="normal">&nbsp;*&nbsp;@package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Doctrine
</td></tr>
<tr><td>30</td>
<td class="normal">&nbsp;*&nbsp;@subpackage&nbsp;&nbsp;Inflector
</td></tr>
<tr><td>31</td>
<td class="normal">&nbsp;*&nbsp;@license&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.opensource.org/licenses/lgpl-license.php&nbsp;LGPL
</td></tr>
<tr><td>32</td>
<td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.org
</td></tr>
<tr><td>33</td>
<td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0
</td></tr>
<tr><td>34</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3189&nbsp;$
</td></tr>
<tr><td>35</td>
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt;
</td></tr>
<tr><td>36</td>
<td class="normal">&nbsp;*/
</td></tr>
<tr><td>37</td>
<td class="normal">class&nbsp;Doctrine_Inflector
</td></tr>
<tr><td>38</td>
<td class="covered">{
</td></tr>
<tr><td>39</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>40</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;pluralize
</td></tr>
<tr><td>41</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>42</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;$word&nbsp;English&nbsp;noun&nbsp;to&nbsp;pluralize
</td></tr>
<tr><td>43</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;string&nbsp;Plural&nbsp;noun
</td></tr>
<tr><td>44</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>45</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;pluralize($word)
</td></tr>
<tr><td>46</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>47</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$plural&nbsp;=&nbsp;array('/(quiz)$/i'&nbsp;=&gt;&nbsp;'\1zes',
</td></tr>
<tr><td>48</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/^(ox)$/i'&nbsp;=&gt;&nbsp;'\1en',
</td></tr>
<tr><td>49</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([m|l])ouse$/i'&nbsp;=&gt;&nbsp;'\1ice',
</td></tr>
<tr><td>50</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(matr|vert|ind)ix|ex$/i'&nbsp;=&gt;&nbsp;'\1ices',
</td></tr>
<tr><td>51</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(x|ch|ss|sh)$/i'&nbsp;=&gt;&nbsp;'\1es',
</td></tr>
<tr><td>52</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([^aeiouy]|qu)ies$/i'&nbsp;=&gt;&nbsp;'\1y',
</td></tr>
<tr><td>53</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([^aeiouy]|qu)y$/i'&nbsp;=&gt;&nbsp;'\1ies',
</td></tr>
<tr><td>54</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(hive)$/i'&nbsp;=&gt;&nbsp;'\1s',
</td></tr>
<tr><td>55</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(?:([^f])fe|([lr])f)$/i'&nbsp;=&gt;&nbsp;'\1\2ves',
</td></tr>
<tr><td>56</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/sis$/i'&nbsp;=&gt;&nbsp;'ses',
</td></tr>
<tr><td>57</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([ti])um$/i'&nbsp;=&gt;&nbsp;'\1a',
</td></tr>
<tr><td>58</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(buffal|tomat)o$/i'&nbsp;=&gt;&nbsp;'\1oes',
</td></tr>
<tr><td>59</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(bu)s$/i'&nbsp;=&gt;&nbsp;'\1ses',
</td></tr>
<tr><td>60</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(alias|status)/i'&nbsp;=&gt;&nbsp;'\1es',
</td></tr>
<tr><td>61</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(octop|vir)us$/i'&nbsp;=&gt;&nbsp;'\1i',
</td></tr>
<tr><td>62</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(ax|test)is$/i'&nbsp;=&gt;&nbsp;'\1es',
</td></tr>
<tr><td>63</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/s$/i'&nbsp;=&gt;&nbsp;'s',
</td></tr>
<tr><td>64</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/$/'&nbsp;=&gt;&nbsp;'s');
</td></tr>
<tr><td>65</td>
<td class="normal">
</td></tr>
<tr><td>66</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$uncountable&nbsp;=&nbsp;array('equipment',
</td></tr>
<tr><td>67</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'information',
</td></tr>
<tr><td>68</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'rice',
</td></tr>
<tr><td>69</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'money',
</td></tr>
<tr><td>70</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'species',
</td></tr>
<tr><td>71</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'series',
</td></tr>
<tr><td>72</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'fish',
</td></tr>
<tr><td>73</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'sheep');
</td></tr>
<tr><td>74</td>
<td class="normal">
</td></tr>
<tr><td>75</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$irregular&nbsp;=&nbsp;array('person'&nbsp;=&gt;&nbsp;'people',
</td></tr>
<tr><td>76</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'man'&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'men',
</td></tr>
<tr><td>77</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'child'&nbsp;&nbsp;=&gt;&nbsp;'children',
</td></tr>
<tr><td>78</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'sex'&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'sexes',
</td></tr>
<tr><td>79</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'move'&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'moves');
</td></tr>
<tr><td>80</td>
<td class="normal">
</td></tr>
<tr><td>81</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$lowercasedWord&nbsp;=&nbsp;strtolower($word);
</td></tr>
<tr><td>82</td>
<td class="normal">
</td></tr>
<tr><td>83</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($uncountable&nbsp;as&nbsp;$_uncountable)&nbsp;{
</td></tr>
<tr><td>84</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(substr($lowercasedWord,&nbsp;(-1&nbsp;*&nbsp;strlen($_uncountable)))&nbsp;==&nbsp;$_uncountable)&nbsp;{
</td></tr>
<tr><td>85</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$word;
</td></tr>
<tr><td>86</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>87</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>88</td>
<td class="normal">
</td></tr>
<tr><td>89</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($irregular&nbsp;as&nbsp;$_plural=&gt;&nbsp;$_singular){
</td></tr>
<tr><td>90</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(preg_match('/('.$_plural.')$/i',&nbsp;$word,&nbsp;$arr))&nbsp;{
</td></tr>
<tr><td>91</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;preg_replace('/('.$_plural.')$/i',&nbsp;substr($arr[0],0,1)&nbsp;.&nbsp;substr($_singular,1),&nbsp;$word);
</td></tr>
<tr><td>92</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>93</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>94</td>
<td class="normal">
</td></tr>
<tr><td>95</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($plural&nbsp;as&nbsp;$rule&nbsp;=&gt;&nbsp;$replacement)&nbsp;{
</td></tr>
<tr><td>96</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(preg_match($rule,&nbsp;$word))&nbsp;{
</td></tr>
<tr><td>97</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;preg_replace($rule,&nbsp;$replacement,&nbsp;$word);
</td></tr>
<tr><td>98</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>99</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>100</td>
<td class="normal">
</td></tr>
<tr><td>101</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;
</td></tr>
<tr><td>102</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>103</td>
<td class="normal">
</td></tr>
<tr><td>104</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>105</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;singularize
</td></tr>
<tr><td>106</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>107</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;$word&nbsp;&nbsp;&nbsp;&nbsp;English&nbsp;noun&nbsp;to&nbsp;singularize
</td></tr>
<tr><td>108</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;string&nbsp;Singular&nbsp;noun.
</td></tr>
<tr><td>109</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>110</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;singularize($word)
</td></tr>
<tr><td>111</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>112</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$singular&nbsp;=&nbsp;array('/(quiz)zes$/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>113</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(matr)ices$/i'&nbsp;=&gt;&nbsp;'\\1ix',
</td></tr>
<tr><td>114</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(vert|ind)ices$/i'&nbsp;=&gt;&nbsp;'\\1ex',
</td></tr>
<tr><td>115</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/^(ox)en/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>116</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(alias|status)es$/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>117</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([octop|vir])i$/i'&nbsp;=&gt;&nbsp;'\\1us',
</td></tr>
<tr><td>118</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(cris|ax|test)es$/i'&nbsp;=&gt;&nbsp;'\\1is',
</td></tr>
<tr><td>119</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(shoe)s$/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>120</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(o)es$/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>121</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(bus)es$/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>122</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([m|l])ice$/i'&nbsp;=&gt;&nbsp;'\\1ouse',
</td></tr>
<tr><td>123</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(x|ch|ss|sh)es$/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>124</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(m)ovies$/i'&nbsp;=&gt;&nbsp;'\\1ovie',
</td></tr>
<tr><td>125</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(s)eries$/i'&nbsp;=&gt;&nbsp;'\\1eries',
</td></tr>
<tr><td>126</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([^aeiouy]|qu)ies$/i'&nbsp;=&gt;&nbsp;'\\1y',
</td></tr>
<tr><td>127</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([lr])ves$/i'&nbsp;=&gt;&nbsp;'\\1f',
</td></tr>
<tr><td>128</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(tive)s$/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>129</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(hive)s$/i'&nbsp;=&gt;&nbsp;'\\1',
</td></tr>
<tr><td>130</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([^f])ves$/i'&nbsp;=&gt;&nbsp;'\\1fe',
</td></tr>
<tr><td>131</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(^analy)ses$/i'&nbsp;=&gt;&nbsp;'\\1sis',
</td></tr>
<tr><td>132</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i'&nbsp;=&gt;&nbsp;'\\1\\2sis',
</td></tr>
<tr><td>133</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/([ti])a$/i'&nbsp;=&gt;&nbsp;'\\1um',
</td></tr>
<tr><td>134</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/(n)ews$/i'&nbsp;=&gt;&nbsp;'\\1ews',
</td></tr>
<tr><td>135</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/s$/i'&nbsp;=&gt;&nbsp;'');
</td></tr>
<tr><td>136</td>
<td class="normal">
</td></tr>
<tr><td>137</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$uncountable&nbsp;=&nbsp;array('equipment',
</td></tr>
<tr><td>138</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'information',
</td></tr>
<tr><td>139</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'rice',
</td></tr>
<tr><td>140</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'money',
</td></tr>
<tr><td>141</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'species',
</td></tr>
<tr><td>142</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'series',
</td></tr>
<tr><td>143</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'fish',
</td></tr>
<tr><td>144</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'sheep',
</td></tr>
<tr><td>145</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'sms');
</td></tr>
<tr><td>146</td>
<td class="normal">
</td></tr>
<tr><td>147</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$irregular&nbsp;=&nbsp;array('person'&nbsp;=&gt;&nbsp;'people',
</td></tr>
<tr><td>148</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'man'&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'men',
</td></tr>
<tr><td>149</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'child'&nbsp;&nbsp;=&gt;&nbsp;'children',
</td></tr>
<tr><td>150</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'sex'&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'sexes',
</td></tr>
<tr><td>151</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'move'&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'moves');
</td></tr>
<tr><td>152</td>
<td class="normal">
</td></tr>
<tr><td>153</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$lowercasedWord&nbsp;=&nbsp;strtolower($word);
</td></tr>
<tr><td>154</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($uncountable&nbsp;as&nbsp;$_uncountable){
</td></tr>
<tr><td>155</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(substr($lowercasedWord,&nbsp;(&nbsp;-1&nbsp;*&nbsp;strlen($_uncountable)))&nbsp;==&nbsp;$_uncountable){
</td></tr>
<tr><td>156</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$word;
</td></tr>
<tr><td>157</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>158</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>159</td>
<td class="normal">
</td></tr>
<tr><td>160</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($irregular&nbsp;as&nbsp;$_singular&nbsp;=&gt;&nbsp;$_plural)&nbsp;{
</td></tr>
<tr><td>161</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(preg_match('/('.$_plural.')$/i',&nbsp;$word,&nbsp;$arr))&nbsp;{
</td></tr>
<tr><td>162</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;preg_replace('/('.$_plural.')$/i',&nbsp;substr($arr[0],0,1).substr($_singular,1),&nbsp;$word);
</td></tr>
<tr><td>163</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>164</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>165</td>
<td class="normal">
</td></tr>
<tr><td>166</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($singular&nbsp;as&nbsp;$rule&nbsp;=&gt;&nbsp;$replacement)&nbsp;{
</td></tr>
<tr><td>167</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(preg_match($rule,&nbsp;$word))&nbsp;{
</td></tr>
<tr><td>168</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;preg_replace($rule,&nbsp;$replacement,&nbsp;$word);
</td></tr>
<tr><td>169</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>170</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>171</td>
<td class="normal">
</td></tr>
<tr><td>172</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$word;
</td></tr>
<tr><td>173</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>174</td>
<td class="normal">
</td></tr>
<tr><td>175</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>176</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;variablize
</td></tr>
<tr><td>177</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;
</td></tr>
<tr><td>178</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$word&nbsp;
</td></tr>
<tr><td>179</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>180</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>181</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;variablize($word)
</td></tr>
<tr><td>182</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>183</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$word&nbsp;=&nbsp;self::camelize($word);
</td></tr>
<tr><td>184</td>
<td class="normal">
</td></tr>
<tr><td>185</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;strtolower($word[0])&nbsp;.&nbsp;substr($word,&nbsp;1);
</td></tr>
<tr><td>186</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>187</td>
<td class="normal">
</td></tr>
<tr><td>188</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>189</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;tableize
</td></tr>
<tr><td>190</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>191</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$name
</td></tr>
<tr><td>192</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>193</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>194</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;tableize($name)
</td></tr>
<tr><td>195</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>196</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Would&nbsp;prefer&nbsp;this&nbsp;but&nbsp;it&nbsp;breaks&nbsp;unit&nbsp;tests.&nbsp;Forces&nbsp;the&nbsp;table&nbsp;underscore&nbsp;pattern
</td></tr>
<tr><td>197</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;return&nbsp;self::pluralize(self::underscore($name));
</td></tr>
<tr><td>198</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;strtolower(preg_replace('~(?&lt;=\\w)([A-Z])~',&nbsp;'_$1',&nbsp;$name));
</td></tr>
<tr><td>199</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>200</td>
<td class="normal">
</td></tr>
<tr><td>201</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>202</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;classify
</td></tr>
<tr><td>203</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>204</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$word
</td></tr>
<tr><td>205</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>206</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;classify($word)
</td></tr>
<tr><td>207</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>208</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;preg_replace_callback('~(_?)(_)([\w])~',&nbsp;array(&quot;Doctrine_Inflector&quot;,&nbsp;&quot;classifyCallback&quot;),&nbsp;ucfirst(strtolower($word)));
</td></tr>
<tr><td>209</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>210</td>
<td class="normal">
</td></tr>
<tr><td>211</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>212</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;classifyCallback
</td></tr>
<tr><td>213</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>214</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Callback&nbsp;function&nbsp;to&nbsp;classify&nbsp;a&nbsp;classname&nbsp;properly.
</td></tr>
<tr><td>215</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>216</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;array&nbsp;$matches&nbsp;An&nbsp;array&nbsp;of&nbsp;matches&nbsp;from&nbsp;a&nbsp;pcre_replace&nbsp;call
</td></tr>
<tr><td>217</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string&nbsp;A&nbsp;string&nbsp;with&nbsp;matches&nbsp;1&nbsp;and&nbsp;mathces&nbsp;3&nbsp;in&nbsp;upper&nbsp;case.
</td></tr>
<tr><td>218</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>219</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;classifyCallback($matches)
</td></tr>
<tr><td>220</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>221</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$matches[1]&nbsp;.&nbsp;strtoupper($matches[3]);
</td></tr>
<tr><td>222</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>223</td>
<td class="normal">
</td></tr>
<tr><td>224</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>225</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;camelize
</td></tr>
<tr><td>226</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>227</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$word&nbsp;
</td></tr>
<tr><td>228</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>229</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>230</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;camelize($word)
</td></tr>
<tr><td>231</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>232</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(preg_match_all('/\/(.?)/',&nbsp;$word,&nbsp;$got))&nbsp;{
</td></tr>
<tr><td>233</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($got[1]&nbsp;as&nbsp;$k&nbsp;=&gt;&nbsp;$v){
</td></tr>
<tr><td>234</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$got[1][$k]&nbsp;=&nbsp;'::'&nbsp;.&nbsp;strtoupper($v);
</td></tr>
<tr><td>235</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>236</td>
<td class="normal">
</td></tr>
<tr><td>237</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$word&nbsp;=&nbsp;str_replace($got[0],&nbsp;$got[1],&nbsp;$word);
</td></tr>
<tr><td>238</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>239</td>
<td class="normal">
</td></tr>
<tr><td>240</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;str_replace('&nbsp;',&nbsp;'',&nbsp;ucwords(preg_replace('/[^A-Z^a-z^0-9^:]+/',&nbsp;'&nbsp;',&nbsp;$word)));
</td></tr>
<tr><td>241</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>242</td>
<td class="normal">
</td></tr>
<tr><td>243</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>244</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;seemsUtf8
</td></tr>
<tr><td>245</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>246</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;By&nbsp;bmorel&nbsp;at&nbsp;ssi&nbsp;dot&nbsp;fr
</td></tr>
<tr><td>247</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>248</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$str&nbsp;
</td></tr>
<tr><td>249</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>250</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>251</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;seemsUtf8($string)
</td></tr>
<tr><td>252</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>253</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;	for&nbsp;($i&nbsp;=&nbsp;0;&nbsp;$i&nbsp;&lt;&nbsp;strlen($string);&nbsp;$i++)&nbsp;{
</td></tr>
<tr><td>254</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		if&nbsp;(ord($string[$i])&nbsp;&lt;&nbsp;0x80)&nbsp;continue;&nbsp;#&nbsp;0bbbbbbb
</td></tr>
<tr><td>255</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		elseif&nbsp;((ord($string[$i])&nbsp;&amp;&nbsp;0xE0)&nbsp;==&nbsp;0xC0)&nbsp;$n=1;&nbsp;#&nbsp;110bbbbb
</td></tr>
<tr><td>256</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		elseif&nbsp;((ord($string[$i])&nbsp;&amp;&nbsp;0xF0)&nbsp;==&nbsp;0xE0)&nbsp;$n=2;&nbsp;#&nbsp;1110bbbb
</td></tr>
<tr><td>257</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		elseif&nbsp;((ord($string[$i])&nbsp;&amp;&nbsp;0xF8)&nbsp;==&nbsp;0xF0)&nbsp;$n=3;&nbsp;#&nbsp;11110bbb
</td></tr>
<tr><td>258</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		elseif&nbsp;((ord($string[$i])&nbsp;&amp;&nbsp;0xFC)&nbsp;==&nbsp;0xF8)&nbsp;$n=4;&nbsp;#&nbsp;111110bb
</td></tr>
<tr><td>259</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		elseif&nbsp;((ord($string[$i])&nbsp;&amp;&nbsp;0xFE)&nbsp;==&nbsp;0xFC)&nbsp;$n=5;&nbsp;#&nbsp;1111110b
</td></tr>
<tr><td>260</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		else&nbsp;return&nbsp;false;&nbsp;#&nbsp;Does&nbsp;not&nbsp;match&nbsp;any&nbsp;model
</td></tr>
<tr><td>261</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		for&nbsp;($j=0;&nbsp;$j&lt;$n;&nbsp;$j++)&nbsp;{&nbsp;#&nbsp;n&nbsp;bytes&nbsp;matching&nbsp;10bbbbbb&nbsp;follow&nbsp;?
</td></tr>
<tr><td>262</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;			if&nbsp;((++$i&nbsp;==&nbsp;strlen($string))&nbsp;||&nbsp;((ord($string[$i])&nbsp;&amp;&nbsp;0xC0)&nbsp;!=&nbsp;0x80))
</td></tr>
<tr><td>263</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;			return&nbsp;false;
</td></tr>
<tr><td>264</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;		}
</td></tr>
<tr><td>265</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;	}
</td></tr>
<tr><td>266</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;	return&nbsp;true;
</td></tr>
<tr><td>267</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>268</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>269</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>270</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;unaccent
</td></tr>
<tr><td>271</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>272</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$string&nbsp;
</td></tr>
<tr><td>273</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>274</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>275</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;unaccent($string)
</td></tr>
<tr><td>276</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>277</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	if&nbsp;(&nbsp;!&nbsp;preg_match('/[\x80-\xff]/',&nbsp;$string)&nbsp;)&nbsp;{
</td></tr>
<tr><td>278</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		return&nbsp;$string;
</td></tr>
<tr><td>279</td>
<td class="orange">&nbsp;&nbsp;		}
</td></tr>
<tr><td>280</td>
<td class="normal">
</td></tr>
<tr><td>281</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	if&nbsp;(self::seemsUtf8($string))&nbsp;{
</td></tr>
<tr><td>282</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		$chars&nbsp;=&nbsp;array(
</td></tr>
<tr><td>283</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		//&nbsp;Decompositions&nbsp;for&nbsp;Latin-1&nbsp;Supplement
</td></tr>
<tr><td>284</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(128)&nbsp;=&gt;&nbsp;'A',&nbsp;chr(195).chr(129)&nbsp;=&gt;&nbsp;'A',
</td></tr>
<tr><td>285</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(130)&nbsp;=&gt;&nbsp;'A',&nbsp;chr(195).chr(131)&nbsp;=&gt;&nbsp;'A',
</td></tr>
<tr><td>286</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(132)&nbsp;=&gt;&nbsp;'A',&nbsp;chr(195).chr(133)&nbsp;=&gt;&nbsp;'A',
</td></tr>
<tr><td>287</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(135)&nbsp;=&gt;&nbsp;'C',&nbsp;chr(195).chr(136)&nbsp;=&gt;&nbsp;'E',
</td></tr>
<tr><td>288</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(137)&nbsp;=&gt;&nbsp;'E',&nbsp;chr(195).chr(138)&nbsp;=&gt;&nbsp;'E',
</td></tr>
<tr><td>289</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(139)&nbsp;=&gt;&nbsp;'E',&nbsp;chr(195).chr(140)&nbsp;=&gt;&nbsp;'I',
</td></tr>
<tr><td>290</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(141)&nbsp;=&gt;&nbsp;'I',&nbsp;chr(195).chr(142)&nbsp;=&gt;&nbsp;'I',
</td></tr>
<tr><td>291</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(143)&nbsp;=&gt;&nbsp;'I',&nbsp;chr(195).chr(145)&nbsp;=&gt;&nbsp;'N',
</td></tr>
<tr><td>292</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(146)&nbsp;=&gt;&nbsp;'O',&nbsp;chr(195).chr(147)&nbsp;=&gt;&nbsp;'O',
</td></tr>
<tr><td>293</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(148)&nbsp;=&gt;&nbsp;'O',&nbsp;chr(195).chr(149)&nbsp;=&gt;&nbsp;'O',
</td></tr>
<tr><td>294</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(150)&nbsp;=&gt;&nbsp;'O',&nbsp;chr(195).chr(153)&nbsp;=&gt;&nbsp;'U',
</td></tr>
<tr><td>295</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(154)&nbsp;=&gt;&nbsp;'U',&nbsp;chr(195).chr(155)&nbsp;=&gt;&nbsp;'U',
</td></tr>
<tr><td>296</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(156)&nbsp;=&gt;&nbsp;'U',&nbsp;chr(195).chr(157)&nbsp;=&gt;&nbsp;'Y',
</td></tr>
<tr><td>297</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(159)&nbsp;=&gt;&nbsp;'s',&nbsp;chr(195).chr(160)&nbsp;=&gt;&nbsp;'a',
</td></tr>
<tr><td>298</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(161)&nbsp;=&gt;&nbsp;'a',&nbsp;chr(195).chr(162)&nbsp;=&gt;&nbsp;'a',
</td></tr>
<tr><td>299</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(163)&nbsp;=&gt;&nbsp;'a',&nbsp;chr(195).chr(164)&nbsp;=&gt;&nbsp;'a',
</td></tr>
<tr><td>300</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(165)&nbsp;=&gt;&nbsp;'a',&nbsp;chr(195).chr(167)&nbsp;=&gt;&nbsp;'c',
</td></tr>
<tr><td>301</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(168)&nbsp;=&gt;&nbsp;'e',&nbsp;chr(195).chr(169)&nbsp;=&gt;&nbsp;'e',
</td></tr>
<tr><td>302</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(170)&nbsp;=&gt;&nbsp;'e',&nbsp;chr(195).chr(171)&nbsp;=&gt;&nbsp;'e',
</td></tr>
<tr><td>303</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(172)&nbsp;=&gt;&nbsp;'i',&nbsp;chr(195).chr(173)&nbsp;=&gt;&nbsp;'i',
</td></tr>
<tr><td>304</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(174)&nbsp;=&gt;&nbsp;'i',&nbsp;chr(195).chr(175)&nbsp;=&gt;&nbsp;'i',
</td></tr>
<tr><td>305</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(177)&nbsp;=&gt;&nbsp;'n',&nbsp;chr(195).chr(178)&nbsp;=&gt;&nbsp;'o',
</td></tr>
<tr><td>306</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(179)&nbsp;=&gt;&nbsp;'o',&nbsp;chr(195).chr(180)&nbsp;=&gt;&nbsp;'o',
</td></tr>
<tr><td>307</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(181)&nbsp;=&gt;&nbsp;'o',&nbsp;chr(195).chr(182)&nbsp;=&gt;&nbsp;'o',
</td></tr>
<tr><td>308</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(182)&nbsp;=&gt;&nbsp;'o',&nbsp;chr(195).chr(185)&nbsp;=&gt;&nbsp;'u',
</td></tr>
<tr><td>309</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(186)&nbsp;=&gt;&nbsp;'u',&nbsp;chr(195).chr(187)&nbsp;=&gt;&nbsp;'u',
</td></tr>
<tr><td>310</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(188)&nbsp;=&gt;&nbsp;'u',&nbsp;chr(195).chr(189)&nbsp;=&gt;&nbsp;'y',
</td></tr>
<tr><td>311</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(195).chr(191)&nbsp;=&gt;&nbsp;'y',
</td></tr>
<tr><td>312</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		//&nbsp;Decompositions&nbsp;for&nbsp;Latin&nbsp;Extended-A
</td></tr>
<tr><td>313</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(128)&nbsp;=&gt;&nbsp;'A',&nbsp;chr(196).chr(129)&nbsp;=&gt;&nbsp;'a',
</td></tr>
<tr><td>314</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(130)&nbsp;=&gt;&nbsp;'A',&nbsp;chr(196).chr(131)&nbsp;=&gt;&nbsp;'a',
</td></tr>
<tr><td>315</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(132)&nbsp;=&gt;&nbsp;'A',&nbsp;chr(196).chr(133)&nbsp;=&gt;&nbsp;'a',
</td></tr>
<tr><td>316</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(134)&nbsp;=&gt;&nbsp;'C',&nbsp;chr(196).chr(135)&nbsp;=&gt;&nbsp;'c',
</td></tr>
<tr><td>317</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(136)&nbsp;=&gt;&nbsp;'C',&nbsp;chr(196).chr(137)&nbsp;=&gt;&nbsp;'c',
</td></tr>
<tr><td>318</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(138)&nbsp;=&gt;&nbsp;'C',&nbsp;chr(196).chr(139)&nbsp;=&gt;&nbsp;'c',
</td></tr>
<tr><td>319</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(140)&nbsp;=&gt;&nbsp;'C',&nbsp;chr(196).chr(141)&nbsp;=&gt;&nbsp;'c',
</td></tr>
<tr><td>320</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(142)&nbsp;=&gt;&nbsp;'D',&nbsp;chr(196).chr(143)&nbsp;=&gt;&nbsp;'d',
</td></tr>
<tr><td>321</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(144)&nbsp;=&gt;&nbsp;'D',&nbsp;chr(196).chr(145)&nbsp;=&gt;&nbsp;'d',
</td></tr>
<tr><td>322</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(146)&nbsp;=&gt;&nbsp;'E',&nbsp;chr(196).chr(147)&nbsp;=&gt;&nbsp;'e',
</td></tr>
<tr><td>323</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(148)&nbsp;=&gt;&nbsp;'E',&nbsp;chr(196).chr(149)&nbsp;=&gt;&nbsp;'e',
</td></tr>
<tr><td>324</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(150)&nbsp;=&gt;&nbsp;'E',&nbsp;chr(196).chr(151)&nbsp;=&gt;&nbsp;'e',
</td></tr>
<tr><td>325</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(152)&nbsp;=&gt;&nbsp;'E',&nbsp;chr(196).chr(153)&nbsp;=&gt;&nbsp;'e',
</td></tr>
<tr><td>326</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(154)&nbsp;=&gt;&nbsp;'E',&nbsp;chr(196).chr(155)&nbsp;=&gt;&nbsp;'e',
</td></tr>
<tr><td>327</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(156)&nbsp;=&gt;&nbsp;'G',&nbsp;chr(196).chr(157)&nbsp;=&gt;&nbsp;'g',
</td></tr>
<tr><td>328</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(158)&nbsp;=&gt;&nbsp;'G',&nbsp;chr(196).chr(159)&nbsp;=&gt;&nbsp;'g',
</td></tr>
<tr><td>329</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(160)&nbsp;=&gt;&nbsp;'G',&nbsp;chr(196).chr(161)&nbsp;=&gt;&nbsp;'g',
</td></tr>
<tr><td>330</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(162)&nbsp;=&gt;&nbsp;'G',&nbsp;chr(196).chr(163)&nbsp;=&gt;&nbsp;'g',
</td></tr>
<tr><td>331</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(164)&nbsp;=&gt;&nbsp;'H',&nbsp;chr(196).chr(165)&nbsp;=&gt;&nbsp;'h',
</td></tr>
<tr><td>332</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(166)&nbsp;=&gt;&nbsp;'H',&nbsp;chr(196).chr(167)&nbsp;=&gt;&nbsp;'h',
</td></tr>
<tr><td>333</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(168)&nbsp;=&gt;&nbsp;'I',&nbsp;chr(196).chr(169)&nbsp;=&gt;&nbsp;'i',
</td></tr>
<tr><td>334</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(170)&nbsp;=&gt;&nbsp;'I',&nbsp;chr(196).chr(171)&nbsp;=&gt;&nbsp;'i',
</td></tr>
<tr><td>335</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(172)&nbsp;=&gt;&nbsp;'I',&nbsp;chr(196).chr(173)&nbsp;=&gt;&nbsp;'i',
</td></tr>
<tr><td>336</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(174)&nbsp;=&gt;&nbsp;'I',&nbsp;chr(196).chr(175)&nbsp;=&gt;&nbsp;'i',
</td></tr>
<tr><td>337</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(176)&nbsp;=&gt;&nbsp;'I',&nbsp;chr(196).chr(177)&nbsp;=&gt;&nbsp;'i',
</td></tr>
<tr><td>338</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(178)&nbsp;=&gt;&nbsp;'IJ',chr(196).chr(179)&nbsp;=&gt;&nbsp;'ij',
</td></tr>
<tr><td>339</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(180)&nbsp;=&gt;&nbsp;'J',&nbsp;chr(196).chr(181)&nbsp;=&gt;&nbsp;'j',
</td></tr>
<tr><td>340</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(182)&nbsp;=&gt;&nbsp;'K',&nbsp;chr(196).chr(183)&nbsp;=&gt;&nbsp;'k',
</td></tr>
<tr><td>341</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(184)&nbsp;=&gt;&nbsp;'k',&nbsp;chr(196).chr(185)&nbsp;=&gt;&nbsp;'L',
</td></tr>
<tr><td>342</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(186)&nbsp;=&gt;&nbsp;'l',&nbsp;chr(196).chr(187)&nbsp;=&gt;&nbsp;'L',
</td></tr>
<tr><td>343</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(188)&nbsp;=&gt;&nbsp;'l',&nbsp;chr(196).chr(189)&nbsp;=&gt;&nbsp;'L',
</td></tr>
<tr><td>344</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(196).chr(190)&nbsp;=&gt;&nbsp;'l',&nbsp;chr(196).chr(191)&nbsp;=&gt;&nbsp;'L',
</td></tr>
<tr><td>345</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(128)&nbsp;=&gt;&nbsp;'l',&nbsp;chr(197).chr(129)&nbsp;=&gt;&nbsp;'L',
</td></tr>
<tr><td>346</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(130)&nbsp;=&gt;&nbsp;'l',&nbsp;chr(197).chr(131)&nbsp;=&gt;&nbsp;'N',
</td></tr>
<tr><td>347</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(132)&nbsp;=&gt;&nbsp;'n',&nbsp;chr(197).chr(133)&nbsp;=&gt;&nbsp;'N',
</td></tr>
<tr><td>348</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(134)&nbsp;=&gt;&nbsp;'n',&nbsp;chr(197).chr(135)&nbsp;=&gt;&nbsp;'N',
</td></tr>
<tr><td>349</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(136)&nbsp;=&gt;&nbsp;'n',&nbsp;chr(197).chr(137)&nbsp;=&gt;&nbsp;'N',
</td></tr>
<tr><td>350</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(138)&nbsp;=&gt;&nbsp;'n',&nbsp;chr(197).chr(139)&nbsp;=&gt;&nbsp;'N',
</td></tr>
<tr><td>351</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(140)&nbsp;=&gt;&nbsp;'O',&nbsp;chr(197).chr(141)&nbsp;=&gt;&nbsp;'o',
</td></tr>
<tr><td>352</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(142)&nbsp;=&gt;&nbsp;'O',&nbsp;chr(197).chr(143)&nbsp;=&gt;&nbsp;'o',
</td></tr>
<tr><td>353</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(144)&nbsp;=&gt;&nbsp;'O',&nbsp;chr(197).chr(145)&nbsp;=&gt;&nbsp;'o',
</td></tr>
<tr><td>354</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(146)&nbsp;=&gt;&nbsp;'OE',chr(197).chr(147)&nbsp;=&gt;&nbsp;'oe',
</td></tr>
<tr><td>355</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(148)&nbsp;=&gt;&nbsp;'R',&nbsp;chr(197).chr(149)&nbsp;=&gt;&nbsp;'r',
</td></tr>
<tr><td>356</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(150)&nbsp;=&gt;&nbsp;'R',&nbsp;chr(197).chr(151)&nbsp;=&gt;&nbsp;'r',
</td></tr>
<tr><td>357</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(152)&nbsp;=&gt;&nbsp;'R',&nbsp;chr(197).chr(153)&nbsp;=&gt;&nbsp;'r',
</td></tr>
<tr><td>358</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(154)&nbsp;=&gt;&nbsp;'S',&nbsp;chr(197).chr(155)&nbsp;=&gt;&nbsp;'s',
</td></tr>
<tr><td>359</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(156)&nbsp;=&gt;&nbsp;'S',&nbsp;chr(197).chr(157)&nbsp;=&gt;&nbsp;'s',
</td></tr>
<tr><td>360</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(158)&nbsp;=&gt;&nbsp;'S',&nbsp;chr(197).chr(159)&nbsp;=&gt;&nbsp;'s',
</td></tr>
<tr><td>361</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(160)&nbsp;=&gt;&nbsp;'S',&nbsp;chr(197).chr(161)&nbsp;=&gt;&nbsp;'s',
</td></tr>
<tr><td>362</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(162)&nbsp;=&gt;&nbsp;'T',&nbsp;chr(197).chr(163)&nbsp;=&gt;&nbsp;'t',
</td></tr>
<tr><td>363</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(164)&nbsp;=&gt;&nbsp;'T',&nbsp;chr(197).chr(165)&nbsp;=&gt;&nbsp;'t',
</td></tr>
<tr><td>364</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(166)&nbsp;=&gt;&nbsp;'T',&nbsp;chr(197).chr(167)&nbsp;=&gt;&nbsp;'t',
</td></tr>
<tr><td>365</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(168)&nbsp;=&gt;&nbsp;'U',&nbsp;chr(197).chr(169)&nbsp;=&gt;&nbsp;'u',
</td></tr>
<tr><td>366</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(170)&nbsp;=&gt;&nbsp;'U',&nbsp;chr(197).chr(171)&nbsp;=&gt;&nbsp;'u',
</td></tr>
<tr><td>367</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(172)&nbsp;=&gt;&nbsp;'U',&nbsp;chr(197).chr(173)&nbsp;=&gt;&nbsp;'u',
</td></tr>
<tr><td>368</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(174)&nbsp;=&gt;&nbsp;'U',&nbsp;chr(197).chr(175)&nbsp;=&gt;&nbsp;'u',
</td></tr>
<tr><td>369</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(176)&nbsp;=&gt;&nbsp;'U',&nbsp;chr(197).chr(177)&nbsp;=&gt;&nbsp;'u',
</td></tr>
<tr><td>370</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(178)&nbsp;=&gt;&nbsp;'U',&nbsp;chr(197).chr(179)&nbsp;=&gt;&nbsp;'u',
</td></tr>
<tr><td>371</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(180)&nbsp;=&gt;&nbsp;'W',&nbsp;chr(197).chr(181)&nbsp;=&gt;&nbsp;'w',
</td></tr>
<tr><td>372</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(182)&nbsp;=&gt;&nbsp;'Y',&nbsp;chr(197).chr(183)&nbsp;=&gt;&nbsp;'y',
</td></tr>
<tr><td>373</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(184)&nbsp;=&gt;&nbsp;'Y',&nbsp;chr(197).chr(185)&nbsp;=&gt;&nbsp;'Z',
</td></tr>
<tr><td>374</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(186)&nbsp;=&gt;&nbsp;'z',&nbsp;chr(197).chr(187)&nbsp;=&gt;&nbsp;'Z',
</td></tr>
<tr><td>375</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(188)&nbsp;=&gt;&nbsp;'z',&nbsp;chr(197).chr(189)&nbsp;=&gt;&nbsp;'Z',
</td></tr>
<tr><td>376</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(197).chr(190)&nbsp;=&gt;&nbsp;'z',&nbsp;chr(197).chr(191)&nbsp;=&gt;&nbsp;'s',
</td></tr>
<tr><td>377</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		//&nbsp;Euro&nbsp;Sign
</td></tr>
<tr><td>378</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(226).chr(130).chr(172)&nbsp;=&gt;&nbsp;'E',
</td></tr>
<tr><td>379</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		//&nbsp;GBP&nbsp;(Pound)&nbsp;Sign
</td></tr>
<tr><td>380</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		chr(194).chr(163)&nbsp;=&gt;&nbsp;'');
</td></tr>
<tr><td>381</td>
<td class="normal">
</td></tr>
<tr><td>382</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		$string&nbsp;=&nbsp;strtr($string,&nbsp;$chars);
</td></tr>
<tr><td>383</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	}&nbsp;else&nbsp;{
</td></tr>
<tr><td>384</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		//&nbsp;Assume&nbsp;ISO-8859-1&nbsp;if&nbsp;not&nbsp;UTF-8
</td></tr>
<tr><td>385</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		$chars['in']&nbsp;=&nbsp;chr(128).chr(131).chr(138).chr(142).chr(154).chr(158)
</td></tr>
<tr><td>386</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
</td></tr>
<tr><td>387</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
</td></tr>
<tr><td>388</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
</td></tr>
<tr><td>389</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
</td></tr>
<tr><td>390</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
</td></tr>
<tr><td>391</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
</td></tr>
<tr><td>392</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
</td></tr>
<tr><td>393</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
</td></tr>
<tr><td>394</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			.chr(252).chr(253).chr(255);
</td></tr>
<tr><td>395</td>
<td class="normal">
</td></tr>
<tr><td>396</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		$chars['out']&nbsp;=&nbsp;&quot;EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy&quot;;
</td></tr>
<tr><td>397</td>
<td class="normal">
</td></tr>
<tr><td>398</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		$string&nbsp;=&nbsp;strtr($string,&nbsp;$chars['in'],&nbsp;$chars['out']);
</td></tr>
<tr><td>399</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		$doubleChars['in']&nbsp;=&nbsp;array(chr(140),&nbsp;chr(156),&nbsp;chr(198),&nbsp;chr(208),&nbsp;chr(222),&nbsp;chr(223),&nbsp;chr(230),&nbsp;chr(240),&nbsp;chr(254));
</td></tr>
<tr><td>400</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		$doubleChars['out']&nbsp;=&nbsp;array('OE',&nbsp;'oe',&nbsp;'AE',&nbsp;'DH',&nbsp;'TH',&nbsp;'ss',&nbsp;'ae',&nbsp;'dh',&nbsp;'th');
</td></tr>
<tr><td>401</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		$string&nbsp;=&nbsp;str_replace($doubleChars['in'],&nbsp;$doubleChars['out'],&nbsp;$string);
</td></tr>
<tr><td>402</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	}
</td></tr>
<tr><td>403</td>
<td class="normal">
</td></tr>
<tr><td>404</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	return&nbsp;$string;
</td></tr>
<tr><td>405</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>406</td>
<td class="normal">
</td></tr>
<tr><td>407</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>408</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;urlize
</td></tr>
<tr><td>409</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>410</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$text&nbsp;
</td></tr>
<tr><td>411</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>412</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>413</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;urlize($text)
</td></tr>
<tr><td>414</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>415</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Remove&nbsp;all&nbsp;non&nbsp;url&nbsp;friendly&nbsp;characters&nbsp;with&nbsp;the&nbsp;unaccent&nbsp;function
</td></tr>
<tr><td>416</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$text&nbsp;=&nbsp;self::unaccent($text);
</td></tr>
<tr><td>417</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>418</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Remove&nbsp;all&nbsp;none&nbsp;word&nbsp;characters
</td></tr>
<tr><td>419</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$text&nbsp;=&nbsp;preg_replace('/\W/',&nbsp;'&nbsp;',&nbsp;$text);
</td></tr>
<tr><td>420</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>421</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;More&nbsp;stripping.&nbsp;Replace&nbsp;spaces&nbsp;with&nbsp;dashes
</td></tr>
<tr><td>422</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$text&nbsp;=&nbsp;strtolower(preg_replace('/[^A-Z^a-z^0-9^\/]+/',&nbsp;'-',
</td></tr>
<tr><td>423</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_replace('/([a-z\d])([A-Z])/',&nbsp;'\1_\2',
</td></tr>
<tr><td>424</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_replace('/([A-Z]+)([A-Z][a-z])/',&nbsp;'\1_\2',
</td></tr>
<tr><td>425</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_replace('/::/',&nbsp;'/',&nbsp;$text)))));
</td></tr>
<tr><td>426</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>427</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;trim($text,&nbsp;'-');
</td></tr>
<tr><td>428</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>429</td>
<td class="normal">
</td></tr>
<tr><td>430</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>431</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;underscore
</td></tr>
<tr><td>432</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>433</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$word&nbsp;
</td></tr>
<tr><td>434</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>435</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>436</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;underscore($word)
</td></tr>
<tr><td>437</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>438</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;strtolower(preg_replace('/[^A-Z^a-z^0-9^\/]+/',&nbsp;'_',
</td></tr>
<tr><td>439</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_replace('/([a-z\d])([A-Z])/',&nbsp;'\1_\2',
</td></tr>
<tr><td>440</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_replace('/([A-Z]+)([A-Z][a-z])/',&nbsp;'\1_\2',
</td></tr>
<tr><td>441</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_replace('/::/',&nbsp;'/',&nbsp;$word)))));
</td></tr>
<tr><td>442</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>443</td>
<td class="covered">}</td></tr>
</table></body></html>